package com.dh.blog.vo;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import com.ewei.web.common.validator.SaveGroup;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_EMPTY)
public class UserVo implements Serializable{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 5419860765292342775L;
	
	private String id;
	/**
	 * 用户名
	 */
	@NotNull(message="{loginName.not.null}",groups={SaveGroup.class})
	private String loginName;
	/**
	 * 密码
	 */
	@NotNull(message="{password.not.null}",groups={SaveGroup.class})
	private String password;
	/**
	 * 图片路径
	 */
	@NotNull(message="{picpath.not.null}",groups={SaveGroup.class})
	private String picpath;
	/**
	 * 昵称
	 */
	private String nickname;
	/**
	 * 描述
	 */
	private String description;
	/**
	 *座右铭
	 */
	private String motto;
	/**
	 * 备注
	 */
	private String mark;
	/**
	 * 角色(0为普通用户)
	 */
	private int role = 0;
	/**
	 * 登陆时间
	 */
	private Date loginTime;
	/**
	 * 注册时的博客路径
	 */
	@NotNull(message="{path.not.null}",groups={SaveGroup.class})
	private String path;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPicpath() {
		return picpath;
	}
	public void setPicpath(String picpath) {
		this.picpath = picpath;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getMotto() {
		return motto;
	}
	public void setMotto(String motto) {
		this.motto = motto;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	
}
